<template>
  <div class="demo-image__lazy">
    <el-image v-for="url in urls" :key="url" :src="url" lazy></el-image>
  </div>
</template>

<script>

export default {
  name: "HomeIndex",
  data() {
    return {
      urls: [
        'https://s2.loli.net/2021/12/30/DhzB8v2lmOX9FSp.jpg',
        'https://s2.loli.net/2021/12/30/RTAhuty6lcxOqQr.jpg',
        'https://s2.loli.net/2021/12/30/tgVRDKsQolJdLx8.jpg'
      ]
    }
  }
}
</script>

<style scoped>
.time {
  font-size: 13px;
  color: #999;
}

.bottom {
  margin-top: 13px;
  line-height: 12px;
}

.button {
  padding: 0;
  float: right;
}

.image {
  width: 100%;
  display: block;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both
}

.demo-image__lazy .el-image {
  display: block;
  min-height: 200px;
  margin-bottom: 10px;
}
</style>
